package com.wps.wdztv6.service;

import com.wps.wdztv6.entity.User;
import com.wps.wdztv6.vo.LoggedUser;

import java.io.IOException;
import java.io.OutputStream;

public interface UserInfoService {
    String genUserAvatarLink(String userId);

    void outputUserAvatar(String userId, OutputStream outputStream) throws IOException;

    //下面的拓展的
    LoggedUser getUserInfo(String token);

    //检查用户信息正常 不正常异常退出
    void validateUser(LoggedUser user);

    void saveUser(String token);

    User selectOneById(String id);
}
